﻿using JY.Wpf.Core.Enums;
using JY.Wpf.Core.Tools;

namespace JY.Wpf.Core.Models
{

    /// <summary>
    /// 警告消息
    /// </summary>
    public class WarningMessage
    {
        /// <summary>
        /// 警告消息
        /// </summary>
        public WarningMessage()
        {
            
        }
        /// <summary>
        /// 警告消息
        /// </summary>
        /// <param name="message">消息</param>
        /// <param name="messageType">消息类型</param>
        public WarningMessage(string message, MessageType messageType)
        {
            this.Message = message;
            this.MessageType = messageType;
        }
        /// <summary>
        /// 是否已显示
        /// </summary>
        [NotifyPropertyChanged]
        public bool IsDisplayed { get; set; }
        /// <summary>
        /// 消息内容
        /// </summary>
        [NotifyPropertyChanged]
        public string Message { get; set; }
        /// <summary>
        /// 消息类型
        /// </summary>
        [NotifyPropertyChanged]
        public MessageType MessageType { get; set; }
    }
}
